package com.visionblue.business.ship.page.outer

import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import com.visionblue.business.ship.R
import com.visionblue.business.ship.base.DefaultObserver
import com.visionblue.business.ship.model.bean.response.ApplicationDetail
import com.visionblue.business.ship.page.collection.CollectionActivity
import com.visionblue.business.ship.page.dialog.SelectionTransportAdapter
import com.visionblue.business.ship.page.dialog.SelectionTransportDialog
import com.visionblue.business.ship.page.dialog.TransferOutDialog
import com.visionblue.business.ship.util.toast
import kotlinx.android.synthetic.main.activity_collection.*
import kotlinx.coroutines.launch
import org.koin.androidx.viewmodel.ext.android.getViewModel

/**
 * @author: ysj
 * @date: 2021-05-20 14:07 PM
 * @desc:新需求转出污染物页面
 */
class OuterNewActivity : CollectionActivity() {

    private lateinit var outerViewModel: OuterViewModel


    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)
        tvInfoTitle.text = "转出对象"
        outerViewModel = getViewModel()

        btnSelectReceived.setText(R.string.select_outer_obj)
        btnSelectReceived.setOnClickListener {
            ChooseOutObjectActivity.start(this)
        }
    }

    override fun initData() {
        super.initData()


    }

    override fun isOutput(): Boolean {
        return true
    }




    companion object {
        fun start(context: Context) {
            Intent(context, OuterNewActivity::class.java)
                .run {
                    context.startActivity(this)
                }
        }
    }
}